package cn.jaye.fabric.common.constant;

/**
 * Created by Jaye on 2017/10/18.
 */
public enum ExceptionEnum {
    SYSTEM_EXCEPTION(500, "系统异常"),
    INVALID_PARAMETER(999, "无效参数"),
    USER_NOLOGIN(1001, "用户未登录"),
    USER_REGISTER(1002, "用户已经注册"),
    USER_REGISTER_FAILED(1003, "注册用户失败"),
    USER_NOT_REGISTER(1004, "该用户未注册，请先注册"),
    USER_PASSWORD_ERROR(1005, "用户名或密码错误"),
    USER_LOGIN_FAILED(1006, "登录失败，请联系管理员"),
    USER_REGISTER_ACCOUNT_FAILED(1007, "注册成功，开通账户失败，请联系管理员，手动开通账户"),
    USER_REGISTER_PASSWORD_EEROR(1008, "注册用户,密码设置不合法"),
    MATCH_NOFIND(1010, "未找到该场比赛信息"),
    MATCH_STOP(1011, "该比赛已经停止竞猜"),
    MATCH_RECORD(1011, "信息记录失败");

    private Integer code;
    private String msg;

    ExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
